import { Module } from "@nestjs/common";
import { ResourceController } from "./resource.controller";
import { MemoryStoredFile, NestjsFormDataModule } from "nestjs-form-data";
import { ResourceService } from "./resource.service";
import { UserModule } from "src/user/user.module";

@Module({
  imports: [
    // form-data
    NestjsFormDataModule.config({ storage: MemoryStoredFile }),
    UserModule,
  ],
  controllers: [ResourceController],
  providers: [ResourceService],
  exports: [ResourceService],
})
export class ResourceModule {}
